package cn.han.File;

import java.io.*;

public class TestIn {
    public static void main(String[] args) {
        method();
    }

    private static void method() {
        InputStream in = null;
        try {


//             in = new FileInputStream(new File("D:\\ready\\1.txt"));
             in = new FileInputStream("D:\\ready\\1.txt");
            int b;
            while ((b=in.read())!=-1){
                System.out.println(b);
            }

        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            try {
                in.close();
            } catch (IOException e) {
                e.printStackTrace();
            }

        }
    }
}
